<html>
  <head>
    <title>
      <%= h("#{@page_title} - Sideffect") %>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="description" content="Datamining Drug Side Effects From Patient's Online Ratings" />
    <meta http-equiv="keywords" content="Drug, Side Effect, Adverse Drug Reaction, ADR, Data Mining, Patient, Popular Drug, Online Rating, EFFEXOR, CYMBALTA, LAMICTAL, LEXAPRO, ZOLOFT, YASMIN, ZYRTEC, Machine Learning, Text Extraction" />
    
    <%= javascript_include_tag :all, :cache => true %>
    <%= stylesheet_link_tag "index_page_effect", :media => "all", :cache => true %>
  </head>
  <body>
    <div id = "header">
      <table width="100%" cellpadding="0" border="0" align="center">
        <tr>
           <td align="left" width="30%">
              <div id = "search_box">
                <% form_tag(:controller => "home", :action => "search") do %>
                  <%= text_field_with_auto_complete(:search, :name, {:autocomplete => "off"}, :url => {:controller => "home", :action => "auto_complete_for_search_name"}) %>
                  <%= submit_tag("Go") %>
                <% end %>
              </div>
            </td>
          <td align="center" width="40%">
            <h2>
              Drug <%= link_to("Side Effects", :controller => "home", :action => "index")%> from Patients' Online Ratings 
            </h2>
          </td>
          <td align="right" width="30%">
            Developed by 
            <%= link_to("Jinyun Yan", "http://www.cs.rutgers.edu/~jinyuny") %>
            and
            <%= link_to("Chehai Wu", "http://sites.google.com/site/wuchehai") %>
          </td>
        </tr>
      </table>
    </div>
    <div id = "initials_list">
      <table width="100%" height="15px" cellpadding="1" border="1" align="center" style="position: relative;">
        <tr>
          <td align="left" width="15%">
            <% form_remote_tag(:html => {:id => "initials_list_switch_form"}, :url => {:controller => "home", :action => "switch_initials_list"}, :update => "initials_list") do %>
              <%= select_tag(:which_initials, options_for_select({"Treatment Categories" => "category", "Drug Names" => "drug"}, @is_show_category_initials ? "category" : "drug"), {:onchange => " $('initials_list_switch_form').onsubmit()"}) %>
            <% end %>
          </td>
          <% ("A".."Z").each do |letter| -%>
            <td align="center">
              <% if @current_initial == letter %>
                <%= letter %>
              <% else %>
                <%= link_to(letter, {:controller => @is_show_category_initials ? "category" : "drug", :action => "list_with_initial", :id => letter}) %>
              <% end %>  
            </td>
          <% end %>
        </tr>
      </table>
    </div> 
    <div id = "main" align="center">
      <%= yield :layout %>
    </div>
    <div id = "footer">
      <table width="100%">
        <tr>
          <td align="center">
            Information on this site is <strong>For Reference Only</strong>!
          </td>
        </tr>
      </table>
    </div>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10147049-2");
    pageTracker._trackPageview();
    } catch(err) {}</script>
  </body>
</html>
